package mtris;
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;


public class MTris extends Frame
{

	private static final long serialVersionUID = -4543935649156736738L;
    MPanel mpanel;
	public MTris()
	{
		
		//URL resource1 = this.getClass().getResource( "" );
    	Image icon= Toolkit.getDefaultToolkit().getImage(getClass().getResource("/res/games-icon.png"));
		addWindowListener(
			new WindowAdapter()
			{		
				public void windowClosing(WindowEvent e){System.exit(0);}
			}
		);
		setIconImage(icon);
		setTitle("MTris");
		mpanel = new MPanel(25);
		add(mpanel);
		pack();
		Dimension resolution = Toolkit.getDefaultToolkit().getScreenSize();
		
		setResizable(false);
		setLocation((resolution.width-getSize().width)/2,(resolution.height-getSize().height)/2);
		setVisible(true);
	}

	public static void main(String[] args) 
	{
		CBox c = new CBox(5,5);
		c.setXPos(3);
		new MTris();
	
	}

}
